package main

import (
	"imooc/test/retriever/real"
	"fmt"
	"time"
)

type Retrieve interface {
	Get(url string) string
}

func download(r Retrieve) string {
	return r.Get("http://www.imooc.com")
}

func main() {
	r := real.Retriever{
		UserAgent: "aaaa",
		TimeOut: time.Millisecond,
	}

	fmt.Printf("%T %v\n", r, r)


	//fmt.Println(download(r))
}
